<?php

/**
 * API接口
 * @author: 喵了个咪  <wenzhenxi@vip.qq.com>    2015-9-16
 */
class Api_Api extends PhalApi_Api {

    public function getRules() {

        return array(
            //通过项目名获取接口清单
            'getApiList' => array(
                'uId' => array('name' => 'uId', 'require' => true),
                'pId' => array('name' => 'pId', 'require' => true),
            ),
        );
    }

    /**
     * 通过项目名获取接口清单
     */
    public function getApiList() {

        //验证管理员账号
        $Domain_Manage = new Domain_Manage();
        $Domain_Manage->checkadminId($this->uId);
        //通过项目名获取接口清单
        $Domain_Api = new Domain_Api();
        return $Domain_Api->getApiList($this->uId, $this->pId);
    }
}


